﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FUSE
{
    public class StartPlanet : FUSE.GalaxyComponent
    {
        private float launchAngle;
        private const float angleDelta = 0.1f;

        public StartPlanet() : base()
        {
            launchAngle = 90.0f;
        }

        public float LaunchAngle
        {
            get
            {
                return launchAngle;
            }

            set
            {
                launchAngle = value;
            }
        }

        public void IncrementAngle()
        {
            if (launchAngle < 180.0f)
                launchAngle += angleDelta;
        }

        public void DecrementAngle()
        {
            if (launchAngle > 0.0f)
                launchAngle -= angleDelta;
        }
    }
}
